<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<base href="${pageContext.request.contextPath }/">
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>后台管理系统</title>
        <link href="resource/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
        <link href="resource/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
        <link href="resource/admin/css/animate.css" rel="stylesheet">
        <link href="resource/admin/css/style.css?v=4.1.0" rel="stylesheet">
        <!--[if lt IE 9]>
        <meta http-equiv="refresh" content="0;ie.html" />
        <![endif]-->
        <script type="text/javascript">
            if(window.top !== window.self){
                window.top.location = window.location;//关键代码
            }
        </script>
    </head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>
                <h1 class="logo-name">中信</h1>
            </div>
            <h3>中信银行周报后台管理系统</h3>

            <form class="m-t" role="form" action="sys/login" method="post" id="loginForm">
                <div class="form-group">
                    <input type="text" id="account" name="account" class="form-control" placeholder="用户名" required="" aria-required="true"  autofocus value="admin">
                </div>
                <div class="form-group">
                    <input type="password" id="password" name="password" class="form-control" placeholder="密码" required="" aria-required="true" value="admin">
                </div>
                <!-- 使用验证框架这里还是使用type="submit",在js中控制事件 -->
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>

                <p class="text-danger text-center">
                    ${requestScope.message }
                </p>

            </form>
        </div>
    </div>

    <!-- 全局js -->
    <script src="resource/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="resource/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="resource/admin/js/plugins/layer/layer.min.js"></script>

    <!-- jQuery Validation plugin javascript-->
    <!-- 参考学习文档:http://www.runoob.com/jquery/jquery-plugin-validate.html -->
    <script src="resource/admin/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="resource/admin/js/plugins/validate/messages_zh.min.js"></script>

    <!-- 判断浏览器 -->
    <script type="text/javascript" src="resource/admin/js/browser.js"></script>

    <!-- 登录表单验证 -->
    <script type="text/javascript" src="resource/admin/js/admin/login.js"></script>

</body>

</html>